package com.cn.wanxi.dao;

import com.cn.wanxi.model.UserModel;

import java.util.List;
import java.util.Map;

public interface IUserDao {

    int addUser(UserModel userModel);

    int updateUser(UserModel userModel);

    int deleteUser(int id);

    UserModel getUser(int id);

    List<UserModel> getUserList();

    List<UserModel> getUsers(Map<String ,Object> params);

    UserModel getUserByUsername(String username);

    UserModel login(UserModel userModel);

    long getUserCount(Map<String, Object> map);
}
